<?php
namespace core\lib;
use core\lib\config;
/**
* model
*/
class model extends \medoo #\PDO
{
	public function __construct()
	{
		/*$database =config::get('database');
		print_r($database);
		try {
			parent::__construct($database['DSN'], $database['USERNAME'], $database['PASSWORD']);
		} catch (PDOException $e) {
			p($e->getMessage());
		}*/
		$database =config::get('database');
		parent::__construct($database);
	}
}